package com.xuecheng.content.service;

import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.content.domain.CoursePub;
import com.baomidou.mybatisplus.extension.service.IService;
import freemarker.template.TemplateException;

import java.io.IOException;
import java.util.Map;

/**
 * <p>
 * 课程发布 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-12-03
 */
public interface CoursePubService extends IService<CoursePub> {
    // 课程预览（同步请求）
    Map preview(Long courseBaseId);
    // 课程发布
    ResponseResult publish(Long courseBaseId) throws Exception;


    //课程下架
    ResponseResult offline(Long courseId) throws IOException;
}
